<html>
<head><meta charset="utf-8"><title>LLVM / rustc symbol names missing · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html">LLVM / rustc symbol names missing</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="201473428"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201473428" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201473428">(Jun 20 2020 at 11:13)</a>:</h4>
<p>I'm trying to debug an LLVM assertion, but I don't have symbol names. This is my <code>config.toml</code>:</p>
<div class="codehilite"><pre><span></span><code><span class="k">[llvm]</span>
<span class="n">optimize</span> <span class="o">=</span> <span class="kc">true</span>
<span class="n">release-debuginfo</span> <span class="o">=</span> <span class="kc">true</span>
<span class="n">assertions</span> <span class="o">=</span> <span class="kc">true</span>

<span class="k">[rust]</span>
<span class="n">debug</span> <span class="o">=</span> <span class="kc">true</span>
<span class="n">incremental</span> <span class="o">=</span> <span class="kc">true</span>
</code></pre></div>



<a name="201473437"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201473437" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201473437">(Jun 20 2020 at 11:13)</a>:</h4>
<p>I deleted my <code>build</code> directory and rebuilt overnight, so there shouldn't be any strange leftovers</p>



<a name="201473605"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201473605" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201473605">(Jun 20 2020 at 11:19)</a>:</h4>
<p>Any other settings I might have missed?</p>



<a name="201479112"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201479112" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201479112">(Jun 20 2020 at 14:10)</a>:</h4>
<p>It seems like I have symbols once I look at <code>libstd</code>, but not in <code>librustc_driver</code> — is there special debug flags for that?</p>



<a name="201479202"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201479202" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201479202">(Jun 20 2020 at 14:13)</a>:</h4>
<p>I have a <code>build/x86_64-apple-darwin/stage1-rustc/x86_64-apple-darwin/release/deps/librustc_driver-4db96b6858843117.dylib.dSYM</code> which seems like it should be applicable</p>



<a name="201479572"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201479572" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201479572">(Jun 20 2020 at 14:24)</a>:</h4>
<div class="codehilite"><pre><span></span><code>(lldb) script lldb.target.module[&#39;/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage2/bin/rustc&#39;].GetNumCompileUnits()
2

(lldb) script lldb.target.module[&#39;/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage2/lib/libstd-4bf044f23608a072.dylib&#39;].GetNumCompileUnits()
351

(lldb) script lldb.target.module[&#39;/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage2/lib/librustc_driver-4db96b6858843117.dylib&#39;].GetNumCompileUnits()
0
</code></pre></div>



<a name="201480000"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480000" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480000">(Jun 20 2020 at 14:38)</a>:</h4>
<p>Hm, I think this might be fixed on latest beta but we haven't bumped yet..</p>



<a name="201480014"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480014" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480014">(Jun 20 2020 at 14:39)</a>:</h4>
<p><a href="https://github.com/rust-lang/cargo/pull/8329">https://github.com/rust-lang/cargo/pull/8329</a></p>



<a name="201480017"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480017" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480017">(Jun 20 2020 at 14:39)</a>:</h4>
<p>But that might not be it since this is presumably not an executable</p>



<a name="201480018"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480018" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480018">(Jun 20 2020 at 14:39)</a>:</h4>
<p>Ok; is there a way I can do the bump locally, test it (and then push the bump?)</p>



<a name="201480070"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480070" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480070">(Jun 20 2020 at 14:40)</a>:</h4>
<p>Ah yeah, easiest is probably to rustup update beta and then edit config.toml to point cargo at ~/.rustup/toolchains/beta.../bin/cargo</p>



<a name="201480073"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480073" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480073">(Jun 20 2020 at 14:40)</a>:</h4>
<p>(with tilde expanded)</p>



<a name="201480076"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480076" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480076">(Jun 20 2020 at 14:40)</a>:</h4>
<p>We have a PR up for the bump to be clear</p>



<a name="201480128"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480128" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480128">(Jun 20 2020 at 14:42)</a>:</h4>
<p>Worth a shot; I'll report back in 1.5 hours after the rebuild</p>



<a name="201480130"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480130" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480130">(Jun 20 2020 at 14:42)</a>:</h4>
<p>But if that doesn't help, and I think it might not, I would try and see if there's dsym files in the build/host/stage2/lib directory - if not, you may be able to copy them in manually from stage2-rustc</p>



<a name="201480134"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480134" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480134">(Jun 20 2020 at 14:42)</a>:</h4>
<p><span class="user-mention" data-user-id="116155">@Jake Goulding</span> you shouldn't need to rebuild llvm</p>



<a name="201480138"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480138" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480138">(Jun 20 2020 at 14:42)</a>:</h4>
<p>So x.py clean should delete everything else</p>



<a name="201480153"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480153" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480153">(Jun 20 2020 at 14:43)</a>:</h4>
<blockquote>
<p>copy them in manually from stage2-rustc</p>
</blockquote>
<p>Copy them to ... ?</p>



<a name="201480289"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201480289" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201480289">(Jun 20 2020 at 14:47)</a>:</h4>
<div class="codehilite"><pre><span></span><code>running: &quot;/Users/shep/.rustup/toolchains/beta-x86_64-apple-darwin/bin/cargo&quot; &quot;build&quot; &quot;--target&quot; &quot;x86_64-apple-darwin&quot; &quot;-Zbinary-dep-depinfo&quot; &quot;-j&quot; &quot;12&quot; &quot;--release&quot; &quot;--features&quot; &quot;panic-unwind backtrace compiler-builtins-c&quot; &quot;--manifest-path&quot; &quot;/Users/shep/Projects/rust/src/libtest/Cargo.toml&quot; &quot;--message-format&quot; &quot;json-render-diagnostics&quot;
</code></pre></div>


<p>Should I worry that there's no obvious debug symbol arguments in this execution?</p>



<a name="201482119"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482119" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482119">(Jun 20 2020 at 15:24)</a>:</h4>
<p>well cargo itself doesn't really have command line debug flags, so no that should be fine</p>



<a name="201482123"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482123" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482123">(Jun 20 2020 at 15:24)</a>:</h4>
<p>(we set an env variable IIRC?)</p>



<a name="201482137"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482137" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482137">(Jun 20 2020 at 15:25)</a>:</h4>
<p>I imagine if you're getting std backtraces you can do the same with rustc dsym as std dsym already happened(?)</p>



<a name="201482146"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482146" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482146">(Jun 20 2020 at 15:25)</a>:</h4>
<p>I'm not really familiar with the particulars of how dsym/debuginfo on macos works</p>



<a name="201482549"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482549" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482549">(Jun 20 2020 at 15:35)</a>:</h4>
<p>Using the newer beta doesn't seem to help</p>



<a name="201482593"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482593" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482593">(Jun 20 2020 at 15:36)</a>:</h4>
<p>What's strange is that LLDB _knows_ there is a debugging file:</p>
<div class="codehilite"><pre><span></span><code>[  0] 77A76DF3-8E0F-371C-866F-D263997580C1 0x0000000100000000 /Users/shep/Projects/rust/build/x86_64-apple-darwin/stage1/bin/rustc
      /System/Volumes/Data/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/rustc_binary-d9ae79f3133c58cb.dSYM/Contents/Resources/DWARF/rustc_binary-d9ae79f3133c58cb
[  1] E4698FBD-806A-3396-B279-E685BA37430B 0x0000000100004000 /usr/lib/dyld
[  2] 44B06C71-9E27-35C7-8392-93847F85DF07 0x0000000100109000 /Users/shep/Projects/rust/build/x86_64-apple-darwin/stage1/lib/librustc_driver-ac37c53b8f5deab0.dylib
      /System/Volumes/Data/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_driver-ac37c53b8f5deab0.dylib.dSYM/Contents/Resources/DWARF/librustc_driver-ac37c53b8f5deab0.dylib
[  3] F90C4365-BAA1-331B-A7A6-562F049C47E1 0x000000010ee17000 /Users/shep/Projects/rust/build/x86_64-apple-darwin/stage1/lib/libstd-bde4c9f9be2d6057.dylib
      /System/Volumes/Data/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-std/x86_64-apple-darwin/release/deps/libstd-bde4c9f9be2d6057.dylib.dSYM/Contents/Resources/DWARF/libstd-bde4c9f9be2d6057.dylib
</code></pre></div>



<a name="201482611"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482611" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482611">(Jun 20 2020 at 15:37)</a>:</h4>
<p>And <code>file</code> states </p>
<div class="codehilite"><pre><span></span><code>/System/Volumes/Data/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_driver-ac37c53b8f5deab0.dylib.dSYM/Contents/Resources/DWARF/librustc_driver-ac37c53b8f5deab0.dylib: Mach-O 64-bit dSYM companion file x86_64
</code></pre></div>



<a name="201482925"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482925" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482925">(Jun 20 2020 at 15:45)</a>:</h4>
<p>hm</p>



<a name="201482926"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482926" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482926">(Jun 20 2020 at 15:45)</a>:</h4>
<p>maybe we're not able to find LLVM debuginfo though?</p>



<a name="201482931"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482931" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482931">(Jun 20 2020 at 15:45)</a>:</h4>
<p>I have no idea how static linking and debuginfo play together</p>



<a name="201482933"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482933" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482933">(Jun 20 2020 at 15:45)</a>:</h4>
<p>(IIRC we are static linking llvm?)</p>



<a name="201482979"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482979" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482979">(Jun 20 2020 at 15:46)</a>:</h4>
<p>That was my understanding as well (... statically linking LLVM into the dynamic library so we can have multiple LLVM backends concurrently, last I remember)</p>



<a name="201482991"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201482991" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201482991">(Jun 20 2020 at 15:46)</a>:</h4>
<p>that was to support "new" LLVM and "old" Emscripten LLVM; so that info is a few years old</p>



<a name="201483016"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201483016" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201483016">(Jun 20 2020 at 15:47)</a>:</h4>
<p>But I feel that the problem has to be one step higher, as the Rust code in <code>librustc_driver</code> also doesn't have symbols</p>



<a name="201483069"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201483069" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201483069">(Jun 20 2020 at 15:48)</a>:</h4>
<p>e.g. </p>
<div class="codehilite"><pre><span></span><code>frame #23: 0x000000010010bdaf librustc_driver-ac37c53b8f5deab0.dylib`rustc_interface::interface::run_compiler_in_existing_thread_pool::hb87d26f888e882b2 + 751
librustc_driver-ac37c53b8f5deab0.dylib`rustc_interface::interface::run_compiler_in_existing_thread_pool::hb87d26f888e882b2:
-&gt;  0x10010bdaf &lt;+751&gt;: movl   %eax, %r15d
    0x10010bdb2 &lt;+754&gt;: movq   0x638(%rbx), %rax
    0x10010bdb9 &lt;+761&gt;: testq  %rax, %rax
    0x10010bdbc &lt;+764&gt;: je     0x10010bdd3               ; &lt;+787&gt;
</code></pre></div>



<a name="201483392"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201483392" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201483392">(Jun 20 2020 at 15:55)</a>:</h4>
<div class="codehilite"><pre><span></span><code>   Compiling rustc_driver v0.0.0 (/Users/shep/Projects/rust/src/librustc_driver)
</code></pre></div>


<p>How can I get that to be a <code>cargo --verbose</code> output instead? Maybe seeing how that crate is compiled would help</p>



<a name="201483572"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201483572" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201483572">(Jun 20 2020 at 15:58)</a>:</h4>
<p>And LLVM has <em>some</em> amount of symbols, as running <code>llc</code> inside of <code>lldb</code> shows some source code.</p>



<a name="201483610"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201483610" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201483610">(Jun 20 2020 at 15:59)</a>:</h4>
<p>I guess I could also try to create a parallel reproduction — a C library with debug symbols, linked into a Rust dylib, loaded into a Rust program (ugh that sounds like a lot of work)</p>



<a name="201483688"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201483688" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201483688">(Jun 20 2020 at 16:00)</a>:</h4>
<p>I'm just a bit surprised that I'm the first to run into this; it's not like macOS is a never-used platform, and I know people use debuggers.</p>



<a name="201483707"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201483707" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201483707">(Jun 20 2020 at 16:00)</a>:</h4>
<p>-vvvv to x.py should work</p>



<a name="201483726"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201483726" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201483726">(Jun 20 2020 at 16:01)</a>:</h4>
<p>there should be no dynamic linking in the llvm / codegen backends these days by default</p>



<a name="201483734"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201483734" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201483734">(Jun 20 2020 at 16:01)</a>:</h4>
<p>(rustc_driver is still a dylib iirc though)</p>



<a name="201484093"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201484093" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201484093">(Jun 20 2020 at 16:07)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116155">Jake Goulding</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing/near/201482991">said</a>:</p>
<blockquote>
<p>that was to support "new" LLVM and "old" Emscripten LLVM; so that info is a few years old</p>
</blockquote>
<p><code>rustc_codegen_llvm</code> has since been turned into a regular dependency of <code>rustc_driver</code>, so it is no longer possible to have multiple LLVM backends.</p>



<a name="201484223"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201484223" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201484223">(Jun 20 2020 at 16:09)</a>:</h4>
<p>it is, I think, just not easily -- we still have the codegen loading code</p>



<a name="201484333"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201484333" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201484333">(Jun 20 2020 at 16:11)</a>:</h4>
<p>The codegen loading code doesn't support loading from the sysroot anymore. It only supports absolute paths. And yes it is technically still possible to compile <code>rustc_codegen_llvm</code> separately. You do have to add <code>crate-type = ["dylib"]</code> and <code>extern crate rustc_driver;</code> though.</p>



<a name="201484396"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201484396" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201484396">(Jun 20 2020 at 16:12)</a>:</h4>
<p>oh sure</p>



<a name="201484401"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201484401" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201484401">(Jun 20 2020 at 16:12)</a>:</h4>
<p>but that all seems like "support mostly still there"</p>



<a name="201484898"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201484898" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201484898">(Jun 20 2020 at 16:22)</a>:</h4>
<p>Rebuilding with <code>-vvvv</code>; we'll see if anything pops out</p>



<a name="201484991"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201484991" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201484991">(Jun 20 2020 at 16:24)</a>:</h4>
<div class="codehilite"><pre><span></span><code>rustc command: \
&quot;DYLD_LIBRARY_PATH&quot;=&quot;/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0/lib&quot; \
&quot;/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0/bin/rustc&quot; \
&quot;--crate-name&quot; &quot;build_script_build&quot; \
&quot;--edition=2018&quot; \
&quot;src/librustc_driver/build.rs&quot; \
&quot;--error-format=json&quot; \
&quot;--json=diagnostic-rendered-ansi&quot; \
&quot;--crate-type&quot; &quot;bin&quot; \
&quot;--emit=dep-info,link&quot; \
&quot;-C&quot; &quot;opt-level=3&quot; \
&quot;-Cembed-bitcode=no&quot; \
&quot;-C&quot; &quot;debuginfo=2&quot; \
&quot;--cfg&quot; &quot;feature=\&quot;llvm\&quot;&quot; \
&quot;-C&quot; &quot;metadata=f21e2d1fd9668325&quot; \
&quot;-C&quot; &quot;extra-filename=-f21e2d1fd9668325&quot; \
&quot;--out-dir&quot; &quot;/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/release/build/rustc_driver-f21e2d1fd9668325&quot; \
&quot;-C&quot; &quot;incremental=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/release/incremental&quot; \
&quot;-L&quot; &quot;dependency=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/release/deps&quot; \
&quot;-Zbinary-dep-depinfo&quot;
</code></pre></div>



<a name="201485004"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201485004" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201485004">(Jun 20 2020 at 16:25)</a>:</h4>
<p>so the build script has debugging <span aria-label="upside down" class="emoji emoji-1f643" role="img" title="upside down">:upside_down:</span></p>



<a name="201488222"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201488222" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201488222">(Jun 20 2020 at 17:33)</a>:</h4>
<div class="codehilite"><pre><span></span><code>rustc command: \
&quot;DYLD_LIBRARY_PATH&quot;=&quot;/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0/lib&quot; \
&quot;/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0/bin/rustc&quot; \
&quot;--crate-name&quot; &quot;rustc_driver&quot; \
&quot;--edition=2018&quot; \
&quot;src/librustc_driver/lib.rs&quot; \
&quot;--error-format=json&quot; \
&quot;--json=diagnostic-rendered-ansi&quot; \
&quot;--crate-type&quot; &quot;dylib&quot; \
&quot;--emit=dep-info,link&quot; \
&quot;-C&quot; &quot;prefer-dynamic&quot; \
&quot;-C&quot; &quot;opt-level=3&quot; \
&quot;-Cembed-bitcode=no&quot; \
&quot;-C&quot; &quot;debuginfo=2&quot; \
&quot;--cfg&quot; &quot;feature=\&quot;llvm\&quot;&quot; \
&quot;-C&quot; &quot;metadata=ac37c53b8f5deab0&quot; \
&quot;-C&quot; &quot;extra-filename=-ac37c53b8f5deab0&quot; \
&quot;--out-dir&quot; &quot;/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps&quot; \
&quot;--target&quot; &quot;x86_64-apple-darwin&quot; \
&quot;-C&quot; &quot;incremental=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/incremental&quot; \
&quot;-L&quot; &quot;dependency=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps&quot; \
&quot;-L&quot; &quot;dependency=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/release/deps&quot; \
&quot;--extern&quot; &quot;env_logger=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/libenv_logger-279167b967f1d3a9.rlib&quot; \
&quot;--extern&quot; &quot;lazy_static=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/liblazy_static-73707428c7faebec.rlib&quot; \
&quot;--extern&quot; &quot;libc=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/liblibc-2ddc9b87cd47ca28.rlib&quot; \
&quot;--extern&quot; &quot;log=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/liblog-c9b296a3791658e0.rlib&quot; \
&quot;--extern&quot; &quot;rustc_ast=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_ast-3a4eed4c61ca1aee.rlib&quot; \
&quot;--extern&quot; &quot;rustc_ast_pretty=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_ast_pretty-8a5210dab4898efc.rlib&quot; \
&quot;--extern&quot; &quot;rustc_codegen_ssa=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_codegen_ssa-755bea4b5a82ffe2.rlib&quot; \
&quot;--extern&quot; &quot;rustc_data_structures=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_data_structures-fefcef1c6b450e7a.rlib&quot; \
&quot;--extern&quot; &quot;rustc_error_codes=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_error_codes-a6d97085eea602f0.rlib&quot; \
&quot;--extern&quot; &quot;rustc_errors=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_errors-c64bcc90664ca3de.rlib&quot; \
&quot;--extern&quot; &quot;rustc_feature=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_feature-30106191771ae53b.rlib&quot; \
&quot;--extern&quot; &quot;rustc_hir=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_hir-d07084e5ca85481f.rlib&quot; \
&quot;--extern&quot; &quot;rustc_hir_pretty=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_hir_pretty-1b8165c2917acfaa.rlib&quot; \
&quot;--extern&quot; &quot;rustc_interface=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_interface-654bb2110d58d634.rlib&quot; \
&quot;--extern&quot; &quot;rustc_lint=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_lint-a39907fd6d163331.rlib&quot; \
&quot;--extern&quot; &quot;rustc_metadata=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_metadata-2e15c00629886ae0.rlib&quot; \
&quot;--extern&quot; &quot;rustc_middle=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_middle-2c2e0c8acf8e51b9.rlib&quot; \
&quot;--extern&quot; &quot;rustc_mir=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_mir-5c4efa7c7d494816.rlib&quot; \
&quot;--extern&quot; &quot;rustc_parse=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_parse-54e3fda7a722ed84.rlib&quot; \
&quot;--extern&quot; &quot;rustc_plugin_impl=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_plugin_impl-041835cd58d884fe.rlib&quot; \
&quot;--extern&quot; &quot;rustc_save_analysis=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_save_analysis-554311788e63e557.rlib&quot; \
&quot;--extern&quot; &quot;rustc_serialize=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_serialize-9aa7982af7ecc463.rlib&quot; \
&quot;--extern&quot; &quot;rustc_session=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_session-570425574f2048ad.rlib&quot; \
&quot;--extern&quot; &quot;rustc_span=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_span-4c530e026d8b3a4c.rlib&quot; \
&quot;--extern&quot; &quot;rustc_target=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_target-0454220c81561b05.rlib&quot; \
&quot;--cfg=bootstrap&quot; \
&quot;-Zmacro-backtrace&quot; \
&quot;-Zosx-rpath-install-name&quot; \
&quot;-Clink-args=-Wl,-rpath,@loader_path/../lib&quot; \
&quot;-Wrust_2018_idioms&quot; \
&quot;-Wunused_lifetimes&quot; \
&quot;-Dwarnings&quot; \
&quot;-Zunstable-options&quot; \
&quot;-Wrustc::internal&quot; \
&quot;-Cprefer-dynamic&quot; \
&quot;-Cllvm-args=-import-instr-limit=10&quot; \
&quot;-Zbinary-dep-depinfo&quot; \
&quot;-L&quot; &quot;native=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/build/psm-a38ad44340af03da/out&quot; \
&quot;-L&quot; &quot;native=/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/build/rustc_llvm-fcb13369a7b1386b/out&quot; \
&quot;-L&quot; &quot;native=/Users/shep/Projects/rust/build/x86_64-apple-darwin/llvm/build/lib&quot; \
&quot;--sysroot&quot; &quot;/Users/shep/Projects/rust/build/x86_64-apple-darwin/stage0-sysroot&quot; \
&quot;-C&quot; &quot;debug-assertions=y&quot; \
&quot;-Z&quot; &quot;force-unstable-if-unmarked&quot;
</code></pre></div>



<a name="201488282"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201488282" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201488282">(Jun 20 2020 at 17:35)</a>:</h4>
<p>so, debuginfo is 2, which is what I'd expect...</p>



<a name="201489697"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201489697" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201489697">(Jun 20 2020 at 18:08)</a>:</h4>
<p>It's also frustrating because libstd is dynamically linked as well</p>



<a name="201490781"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201490781" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201490781">(Jun 20 2020 at 18:32)</a>:</h4>
<p>And trying to reproduce doesn't exhibit the same problem. I directly added the dylib project as a dependency and used libloading, but both ways has symbols in the library</p>



<a name="201512315"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201512315" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201512315">(Jun 21 2020 at 02:46)</a>:</h4>
<p><code>readelf</code> of a solib/binary should answer if the debug info does in fact remain in the final outputs.</p>



<a name="201512380"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/LLVM%20/%20rustc%20symbol%20names%20missing/near/201512380" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/LLVM.20.2F.20rustc.20symbol.20names.20missing.html#201512380">(Jun 21 2020 at 02:48)</a>:</h4>
<div class="codehilite"><pre><span></span><code>readelf --debug-dump=info dsoname | grep -A 2 &#39;Compilation Unit @
</code></pre></div>


<p>is something I had in my scrollback.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>